CC=g++
CFLAG=-Wall -Wextra -pedantic -ansi -Wmissing-declarations -Werror
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)

EXEC=get_key

all:$(OBJ)
	mkdir -p ../../bin;
	cd ../../obj && $(CC) $(CFLAG) -o ../bin/$(EXEC) $^

%.o:%.cpp
	mkdir -p ../../obj;
	$(CC) $(CFLAG) -c -o ../../obj/$@ $<

clean:
	rm -rf *~ \#*#